package com.kitchen.api.controller;

import com.kitchen.common.vo.ResultVO;
import com.kitchen.service.ClassroomCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 78468
 */
@RestController
@RequestMapping("/classroom")
@CrossOrigin
@Api(tags = "课堂分类管理")
public class ClassroomCategoryController {

    @Autowired
    private ClassroomCategoryService classroomCategoryService;


    @RequestMapping(value = "/showall",method = RequestMethod.GET)
    @ApiOperation(value = "显示所有分类")
    public ResultVO showAll(){
        return classroomCategoryService.showAll();
    }
}
